<ui:composition
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<rich:panel>
		<f:facet name="header">
			<h:outputText value="#{title}"/>
		</f:facet>
		<a4j:form>
			<h:panelGrid footerClass="rightAlign">
				<h:panelGroup>
					<ui:insert/>
				</h:panelGroup>
				<f:facet name="footer">
					<h:panelGroup>
						<a4j:commandButton value="&lt; Prev" action="#{bean.wizard.goPrevPage}" rendered="#{!bean.wizard.first}" immediate="true"/>
						<a4j:commandButton value="Next &gt;" action="#{bean.wizard.goNextPage}" rendered="#{!bean.wizard.last}"/>
						<a4j:commandButton value="Finish" action="#{bean.save}" rendered="#{bean.wizard.last}"/>
						<a4j:commandButton value="Cancel" action="#{bean.cancel}" immediate="true"/>
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>
		</a4j:form>
	</rich:panel>
</ui:composition>